package com.china08.yxyapi.entity.db.continuedu;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 专题课程 课时
 * 
 */
/**
 * @author LiuWeidong
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_continuedu_lesson_item", catalog = "yxy_continuedu", uniqueConstraints = { @UniqueConstraint(columnNames = { "lesson_id", "video_id" }) })
public class YxyContinueduLessonItem extends BaseEntity {

    @Column(name = "lesson_id", nullable = false)
    private String lessonId;

    @Column(columnDefinition = "varchar(256) comment '名称' ")
    private String title;// 名称

    @Column(name = "video_id", nullable = false, columnDefinition = "varchar(32) comment '视频id,使用lesson_video的表存储视频文件信息' ")
    private String videoId;// 视频id

    /** 排列序号 */
    @Column(name = "order_num", nullable = false, columnDefinition = "INT(11) DEFAULT 100")
    private Integer orderNum = 0;

    public String getLessonId() {
        return lessonId;
    }

    public void setLessonId(String lessonId) {
        this.lessonId = lessonId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

}
